<?php
namespace app\common\model;

// use think\Model;

class UserRole extends \app\common\model\Base
{





	public function del( $user_id , $role_id ){
		$map = array();
		if( $user_id !== null ){ $map['user_id'] = intval($user_id); }
		if( $role_id !== null ){ $map['role_id'] = intval($role_id); }
		if( empty($map) ){$this->error = '参数错误，删除失败' ; return false ;}
		return $this->where($map)->delete();
	}




}